package jj.fly.cloud.fiegn;

import feign.Param;
import feign.RequestLine;
import jj.fly.cloud.entity.User;
import jj.fly.config.Configuration1;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "microservice-provider-user",configuration = Configuration1.class)
public interface UserFiegnClient {

    @RequestLine("GET /simple/{id}")
    User findById(@Param("id") Long id);

}
